/**
 * Created by root on 14-8-19.
 */
//javascript & DSL


//datasend:{gid: goods_id, sid: sale_id, count: num}
function jsonpgo(urlName,dataSend,funcName) {
//    console.log(urlName);
    $.ajax({
        type: "GET",
        url:urlName,
//        data:eval(dataSend),
//        data:{gid:552},
        data:dataSend,
        cache: false,
        jsonp: "callback",
        dataType: "jsonp",
        success: function (data) {
//            console.log(data);
            eval(funcName+"(data)");
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            alert("error");
            console.log(errorThrown);
        }
    });
}

function guava(data){
    console.log(data[0]);
    $("#result").html($.fn.lookInto(data[0]));
    $.fn.lookInto(data[0]);
}

thisSiteUrl="http://127.0.1.1:4567/";